home *** CD-ROM | disk | FTP | other *** search
/ Loadstar 2 / 002.d81 / about stripper (.txt) < prev    next >
Commodore BASIC  |  2022-08-26  |  2KB  |  67 lines

  1. 10 rem"    [201]nstruct [215]ord [211]tripper
  2. 20 [143]"       by atnlan chr$ardner
  3. 30 rem"  [202]immy [215]eiler helped me some
  4. 40 :
  5. 50 [153][199](14);"load":[151]53281,0:[151]53280,6
  6. 60 [151]783,[194](783)[175]254
  7. 70 v[178]23:h[178]10:h2[178]26:m$[178]"or^exp/"
  8. 80 p$[178]"(NULL)ord (NULL)tripper":cc[178]20[171][195](p$)[173]2:[151]781,1:[151]782,cc:[158]65520:[153]p$
  9. 90 [153]:[153]
  10. 100 [153]"  (NULL)ord (NULL)tripper is a program designed":[153]
  11. 110 [153]"to help people program atnstr$(NULL)val(NULL)(NULL)(NULL)(NULL)val chr$atn(NULL)val(NULL).":[153]
  12. 120 [153]"(NULL)(NULL)(NULL)str$close(NULL)(NULL)(NULL)right$(NULL)(NULL)val(NULL) consists of a small basic":[153]
  13. 130 [153]"program which loads in two small ":[153]
  14. 140 [153]"machine language routines.  (NULL)he first":[153]
  15. 150 [153]"routine is called lenatn(NULL)valcloselen(NULL)(NULL)(NULL)val(NULL)(NULL)val(NULL).  ":[153]
  16. 160 [153]"(NULL)his program is designed to convert all":[153]
  17. 170 [153]"upper-case characters to lower case.":[153]:[141]60000
  18. 171 [153]"load"
  19. 172 p$[178]"(NULL)ord (NULL)tripper":cc[178]20[171][195](p$)[173]2:[151]781,1:[151]782,cc:[158]65520:[153]p$
  20. 174 [153]:[153]
  21. 180 [153]"  (NULL)ater, word stripper throws away non-":[153]
  22. 190 [153]"pronouncables: graphic symbols, punc-":[153]
  23. 200 [153]"tuation, and non-verbal characters":[153]
  24. 210 [153]"(valx. how do you pronounce '##$!'.)":[153]
  25. 220 [153]"  (NULL)he second routine is right$(NULL)(NULL)(NULL)(NULL)right$(NULL)chr$.  peeky":[153]
  26. 230 [153]"doing this:":[153]
  27. 240 [153]"       (NULL)(NULL)(NULL)50000atn$peek$(NULL)%":[153]
  28. 250 [153]"(NULL)he value of (NULL)%=0 if atn$ is not in peek$.":[153]
  29. 260 [153]"(NULL)therwise, (NULL)% will contain the starting":[153]
  30. 265 [141]60000
  31. 266 [153]"load"
  32. 267 p$[178]"(NULL)ord (NULL)tripper":cc[178]20[171][195](p$)[173]2:[151]781,1:[151]782,cc:[158]65520:[153]p$
  33. 268 [153]:[153]
  34. 270 [153]"point in peek$ where atn$ begins.":[153]
  35. 280 [153]"  (NULL)his program is very useful in games ":[153]
  36. 290 [153]"because it allows you to 'parse' or to ":[153]
  37. 300 [153]"'decode syntax'.  (NULL)his is important":[153]
  38. 310 [153]"because if someone enters:":[153]
  39. 320 [153]"    -->chr$val(NULL)closeval(NULL)val(NULL)left$atn(NULL)(NULL)":[153]
  40. 330 [153]"and they're already carrying the":[153]
  41. 340 [153]"elephant (ha! ha!) the computer will":[153]
  42. 350 [153]"respond:":[153]
  43. 360 [153]"  -->(NULL)ou can't. (NULL)ou already have that!":[153]
  44. 370 [141]60000
  45. 380 [153]"load"
  46. 390 p$[178]"(NULL)ord (NULL)tripper":cc[178]20[171][195](p$)[173]2:[151]781,1:[151]782,cc:[158]65520:[153]p$
  47. 400 [153]:[153]
  48. 410 [153]"  (NULL)his program will split any sentence":[153]
  49. 420 [153]"into its component words.  right$t is up to ":[153]
  50. 430 [153]"you to decide what to do with the words":[153]
  51. 440 [153]"once you get them.":[153]
  52. 450 [153]"  (NULL)he syntax of each routine is:":[153]
  53. 460 [153]"  (NULL)(NULL)(NULL)50000atn$      -to convert case"
  54. 470 [153]"  (NULL)(NULL)(NULL)49152atn$peek$(NULL)%  -to find sub-strings":[153]:[153]
  55. 480 [153]"  ((NULL)ou may use any string or integer "
  56. 490 [153]"          names that you want)":[153]
  57. 492 [153]"(NULL)(NULL)(NULL)val-(NULL)% (NULL)(NULL)(NULL)(NULL) have a value before the (NULL)(NULL)(NULL)"
  58. 495 [141]60000
  59. 500 [153]"loadload"[199](34)"word stripper"[199](34)",8":[153]"run"
  60. 510 [151]198,0:[151]631,13:[151]632,13:[151]198,2:[128]
  61. 60000 [151]781,v:[151]782,11:[158]65520:[153]"< (NULL)ress a (NULL)ey >";
  62. 60005 [129]x[178]1[164][195](m$)
  63. 60010 [151]781,v:[151]782,h:[158]65520:[153][202](m$,x,1)
  64. 60015 [151]781,v:[151]782,h2:[158]65520:[153][202](m$,x,1)
  65. 60020 [161]z$:[139]z$[179][177]""[167][142]
  66. 60030 [130]:[137]60005
  67.